﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001F3 RID: 499
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChatMessageData : IMessage<ChatMessageData>, IMessage, IEquatable<ChatMessageData>, IDeepCloneable<ChatMessageData>, IBufferMessage
	{
		// Token: 0x17000690 RID: 1680
		// (get) Token: 0x0600168C RID: 5772 RVA: 0x000400D7 File Offset: 0x0003E2D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChatMessageData> Parser
		{
			get
			{
				return ChatMessageData._parser;
			}
		}

		// Token: 0x17000691 RID: 1681
		// (get) Token: 0x0600168D RID: 5773 RVA: 0x000400DE File Offset: 0x0003E2DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChatMessageDataReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000692 RID: 1682
		// (get) Token: 0x0600168E RID: 5774 RVA: 0x000400F0 File Offset: 0x0003E2F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChatMessageData.Descriptor;
			}
		}

		// Token: 0x0600168F RID: 5775 RVA: 0x000400F7 File Offset: 0x0003E2F7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChatMessageData()
		{
		}

		// Token: 0x06001690 RID: 5776 RVA: 0x0004010C File Offset: 0x0003E30C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChatMessageData(ChatMessageData other) : this()
		{
			this.extraId_ = other.extraId_;
			this.messageType_ = other.messageType_;
			this.content_ = other.content_;
			this.senderId_ = other.senderId_;
			this.createTime_ = other.createTime_;
			this.oHINLDBELBA_ = ((other.oHINLDBELBA_ != null) ? other.oHINLDBELBA_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001691 RID: 5777 RVA: 0x00040188 File Offset: 0x0003E388
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChatMessageData Clone()
		{
			return new ChatMessageData(this);
		}

		// Token: 0x17000693 RID: 1683
		// (get) Token: 0x06001692 RID: 5778 RVA: 0x00040190 File Offset: 0x0003E390
		// (set) Token: 0x06001693 RID: 5779 RVA: 0x00040198 File Offset: 0x0003E398
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ExtraId
		{
			get
			{
				return this.extraId_;
			}
			set
			{
				this.extraId_ = value;
			}
		}

		// Token: 0x17000694 RID: 1684
		// (get) Token: 0x06001694 RID: 5780 RVA: 0x000401A1 File Offset: 0x0003E3A1
		// (set) Token: 0x06001695 RID: 5781 RVA: 0x000401A9 File Offset: 0x0003E3A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MsgType MessageType
		{
			get
			{
				return this.messageType_;
			}
			set
			{
				this.messageType_ = value;
			}
		}

		// Token: 0x17000695 RID: 1685
		// (get) Token: 0x06001696 RID: 5782 RVA: 0x000401B2 File Offset: 0x0003E3B2
		// (set) Token: 0x06001697 RID: 5783 RVA: 0x000401BA File Offset: 0x0003E3BA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Content
		{
			get
			{
				return this.content_;
			}
			set
			{
				this.content_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x17000696 RID: 1686
		// (get) Token: 0x06001698 RID: 5784 RVA: 0x000401CD File Offset: 0x0003E3CD
		// (set) Token: 0x06001699 RID: 5785 RVA: 0x000401D5 File Offset: 0x0003E3D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SenderId
		{
			get
			{
				return this.senderId_;
			}
			set
			{
				this.senderId_ = value;
			}
		}

		// Token: 0x17000697 RID: 1687
		// (get) Token: 0x0600169A RID: 5786 RVA: 0x000401DE File Offset: 0x0003E3DE
		// (set) Token: 0x0600169B RID: 5787 RVA: 0x000401E6 File Offset: 0x0003E3E6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ulong CreateTime
		{
			get
			{
				return this.createTime_;
			}
			set
			{
				this.createTime_ = value;
			}
		}

		// Token: 0x17000698 RID: 1688
		// (get) Token: 0x0600169C RID: 5788 RVA: 0x000401EF File Offset: 0x0003E3EF
		// (set) Token: 0x0600169D RID: 5789 RVA: 0x000401F7 File Offset: 0x0003E3F7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MNMEBDFAJJP OHINLDBELBA
		{
			get
			{
				return this.oHINLDBELBA_;
			}
			set
			{
				this.oHINLDBELBA_ = value;
			}
		}

		// Token: 0x0600169E RID: 5790 RVA: 0x00040200 File Offset: 0x0003E400
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChatMessageData);
		}

		// Token: 0x0600169F RID: 5791 RVA: 0x00040210 File Offset: 0x0003E410
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChatMessageData other)
		{
			return other != null && (other == this || (this.ExtraId == other.ExtraId && this.MessageType == other.MessageType && !(this.Content != other.Content) && this.SenderId == other.SenderId && this.CreateTime == other.CreateTime && object.Equals(this.OHINLDBELBA, other.OHINLDBELBA) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060016A0 RID: 5792 RVA: 0x000402A4 File Offset: 0x0003E4A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ExtraId != 0U)
			{
				num ^= this.ExtraId.GetHashCode();
			}
			if (this.MessageType != MsgType.None)
			{
				num ^= this.MessageType.GetHashCode();
			}
			if (this.Content.Length != 0)
			{
				num ^= this.Content.GetHashCode();
			}
			if (this.SenderId != 0U)
			{
				num ^= this.SenderId.GetHashCode();
			}
			if (this.CreateTime != 0UL)
			{
				num ^= this.CreateTime.GetHashCode();
			}
			if (this.oHINLDBELBA_ != null)
			{
				num ^= this.OHINLDBELBA.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060016A1 RID: 5793 RVA: 0x00040365 File Offset: 0x0003E565
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060016A2 RID: 5794 RVA: 0x0004036D File Offset: 0x0003E56D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060016A3 RID: 5795 RVA: 0x00040378 File Offset: 0x0003E578
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Content.Length != 0)
			{
				output.WriteRawTag(10);
				output.WriteString(this.Content);
			}
			if (this.CreateTime != 0UL)
			{
				output.WriteRawTag(40);
				output.WriteUInt64(this.CreateTime);
			}
			if (this.oHINLDBELBA_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.OHINLDBELBA);
			}
			if (this.SenderId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.SenderId);
			}
			if (this.MessageType != MsgType.None)
			{
				output.WriteRawTag(80);
				output.WriteEnum((int)this.MessageType);
			}
			if (this.ExtraId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.ExtraId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060016A4 RID: 5796 RVA: 0x00040448 File Offset: 0x0003E648
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ExtraId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ExtraId);
			}
			if (this.MessageType != MsgType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.MessageType);
			}
			if (this.Content.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Content);
			}
			if (this.SenderId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SenderId);
			}
			if (this.CreateTime != 0UL)
			{
				num += 1 + CodedOutputStream.ComputeUInt64Size(this.CreateTime);
			}
			if (this.oHINLDBELBA_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.OHINLDBELBA);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060016A5 RID: 5797 RVA: 0x00040504 File Offset: 0x0003E704
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChatMessageData other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ExtraId != 0U)
			{
				this.ExtraId = other.ExtraId;
			}
			if (other.MessageType != MsgType.None)
			{
				this.MessageType = other.MessageType;
			}
			if (other.Content.Length != 0)
			{
				this.Content = other.Content;
			}
			if (other.SenderId != 0U)
			{
				this.SenderId = other.SenderId;
			}
			if (other.CreateTime != 0UL)
			{
				this.CreateTime = other.CreateTime;
			}
			if (other.oHINLDBELBA_ != null)
			{
				if (this.oHINLDBELBA_ == null)
				{
					this.OHINLDBELBA = new MNMEBDFAJJP();
				}
				this.OHINLDBELBA.MergeFrom(other.OHINLDBELBA);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060016A6 RID: 5798 RVA: 0x000405C1 File Offset: 0x0003E7C1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060016A7 RID: 5799 RVA: 0x000405CC File Offset: 0x0003E7CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 50U)
				{
					if (num == 10U)
					{
						this.Content = input.ReadString();
						continue;
					}
					if (num == 40U)
					{
						this.CreateTime = input.ReadUInt64();
						continue;
					}
					if (num == 50U)
					{
						if (this.oHINLDBELBA_ == null)
						{
							this.OHINLDBELBA = new MNMEBDFAJJP();
						}
						input.ReadMessage(this.OHINLDBELBA);
						continue;
					}
				}
				else
				{
					if (num == 64U)
					{
						this.SenderId = input.ReadUInt32();
						continue;
					}
					if (num == 80U)
					{
						this.MessageType = (MsgType)input.ReadEnum();
						continue;
					}
					if (num == 112U)
					{
						this.ExtraId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000945 RID: 2373
		private static readonly MessageParser<ChatMessageData> _parser = new MessageParser<ChatMessageData>(() => new ChatMessageData());

		// Token: 0x04000946 RID: 2374
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000947 RID: 2375
		public const int ExtraIdFieldNumber = 14;

		// Token: 0x04000948 RID: 2376
		private uint extraId_;

		// Token: 0x04000949 RID: 2377
		public const int MessageTypeFieldNumber = 10;

		// Token: 0x0400094A RID: 2378
		private MsgType messageType_;

		// Token: 0x0400094B RID: 2379
		public const int ContentFieldNumber = 1;

		// Token: 0x0400094C RID: 2380
		private string content_ = "";

		// Token: 0x0400094D RID: 2381
		public const int SenderIdFieldNumber = 8;

		// Token: 0x0400094E RID: 2382
		private uint senderId_;

		// Token: 0x0400094F RID: 2383
		public const int CreateTimeFieldNumber = 5;

		// Token: 0x04000950 RID: 2384
		private ulong createTime_;

		// Token: 0x04000951 RID: 2385
		public const int OHINLDBELBAFieldNumber = 6;

		// Token: 0x04000952 RID: 2386
		private MNMEBDFAJJP oHINLDBELBA_;
	}
}
